import request from '@/utils/request'

// 查询学生作品列表
export function listHomework(query) {
  return request({
    url: '/school/homework/list',
    method: 'get',
    params: query
  })
}

// 查询学生作品详细
export function getHomework(imageId) {
  return request({
    url: '/school/homework/' + imageId,
    method: 'get'
  })
}

// 新增学生作品
export function addHomework(data) {
  return request({
    url: '/school/homework',
    method: 'post',
    data: data
  })
}

// 修改学生作品
export function updateHomework(data) {
  return request({
    url: '/school/homework',
    method: 'put',
    data: data
  })
}

// 删除学生作品
export function delHomework(imageId) {
  return request({
    url: '/school/homework/' + imageId,
    method: 'delete'
  })
}
